﻿@{
    ViewBag.Title = "Index";
    //ViewBag.userForDelete = "none";
}


    <div>


        This page is appointed for Merchandise Service<br /><br />
  
        @*    @Html.ActionLink("Create User","CreateUser",null,new { @class="buttons-yellow"})*@
        <br /><br />
        Search by</div>
    <div>
        @using (Ajax.BeginForm("OrderTable", new AjaxOptions
            {
                UpdateTargetId = "table",
                LoadingElementId = "loading",
                LoadingElementDuration = 1000
            }))
        {
            <div>
                <table class="filter-tabel">
       
      
                    <tr> 
                        <th>Field Filter</th> 
                        <th></th> 
                        <th></th> 
                        <th></th> 
                    </tr>

       
                    <tr>
                        <th>
                            @Html.DropDownList("listSelectField", new SelectList(new string[] {"OrderId", "UserId", "TotalPrice",}), new {@class = "admin-drop-list"})
                        </th>

                        <th>
                            @Html.DropDownList("listSelectCondition", new SelectList(new string[] {"starts with", "equals", "contains"}), new {@class = "admin-drop-list"})
                        </th>
            
                        <th>
                            @Html.TextBox("searchString", null, new {@class = "admin-drop-list border"})
                        </th>
                        <th>
                            <input type="submit" value="Filter" class="buttons-blue" />
                        </th>
                              

                    </tr>

                </table>
            </div>
        }
        <div id="table">
            @Html.Partial("~/Views/Merchandise/OrderTable.cshtml")
        </div>
        <div style="position: absolute; text-align: right; margin-left: 810px; margin-top: 11px;">
            <img id="loading" src="@Url.Content("~/Content/images/loading.gif")" style="display: none" />
        </div>
    </div>


